package com.gupaoedu.vip.factory.homework.factorymethod;

import com.gupaoedu.vip.factory.homework.Car;

/**
 * @Auther: tcm
 * @Date: 2020/1/14 14:54
 * @Description:
 */
public class FactoryMethodTest {

    public static void main(String[] args) {
        Car car = new AudiCarFactory().createCar();
        car.introduce();
        car = new BenzCarFactory().createCar();
        car.introduce();
        car = new BMWCarFactory().createCar();
        car.introduce();
    }

}
